package com.foruo.demo.spring.scan;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Primary;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Qualifier("gunEntity")
@Primary
@Component
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class GunEntity implements IToolEntity{

    @Override
    public void use() {
        System.out.println("用枪");
    }
}
